package cn.redragon.soa.amqp.model;


import cn.redragon.soa.common.amqp.model.RoutingKeyProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Setter
@Getter
@Component
@ConfigurationProperties(prefix = "amqp.inner")
public class InnerEventProperty extends ExchangeProperty {

    private StockEventProperty stock;

    @Setter
    @Getter
    @NoArgsConstructor
    public static class StockEventProperty {

        private RoutingKeyProperty updated;
    }
}
